/**
 * @file       CLabel_test.cpp
 * @brief      TODO
 * @author     Huabo Zheng
 * @date       Jan 12, 2012
 * @Copyright  2012, www.netgear.com Inc. All rights reserved.
 */

#include "Label.h"
#include "gtest/gtest.h"
#include "errorcode.h"
namespace NS_LCD_AFW
{
class CLabel_test : public ::testing::Test
{
public:
	virtual void SetUp()
	{
	}
	virtual void TearDown()
	{
	}
};
TEST_F(CLabel_test,test_defualtConstruction)
{
	CLabel *pLabel = new CLabel();
	EXPECT_FALSE(pLabel->isHightlightable());
	EXPECT_FALSE(pLabel->isFocusable());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_setText)
{
	CLabel *pLabel = new CLabel();
	EXPECT_FALSE(pLabel->isHightlightable());
	EXPECT_FALSE(pLabel->isFocusable());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_onDraw)
{
}
TEST_F(CLabel_test,test_onCreate)
{
}
TEST_F(CLabel_test,test_onRightKeyPress)
{
	CFrame *pLabel = new CLabel();
	EXPECT_EQ(ERR_EVENT_UN_HANDLED,pLabel->onRightKeyPress());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_onLeftKeyPress)
{
	CFrame *pLabel = new CLabel();
	EXPECT_EQ(ERR_EVENT_UN_HANDLED,pLabel->onLeftKeyPress());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_onUpKeyPress)
{
	CFrame *pLabel = new CLabel();
	EXPECT_EQ(ERR_EVENT_UN_HANDLED,pLabel->onUpKeyPress());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_onDownKeyPress)
{
	CFrame *pLabel = new CLabel();
	EXPECT_EQ(ERR_EVENT_UN_HANDLED,pLabel->onDownKeyPress());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_onEnterKeyPress)
{
	CFrame *pLabel = new CLabel();
	EXPECT_EQ(ERR_EVENT_UN_HANDLED,pLabel->onEnterKeyPress());
	OBJ_DESTORY(pLabel);
}
TEST_F(CLabel_test,test_onEscKeyPress)
{
	CFrame *pLabel = new CLabel();
	EXPECT_EQ(ERR_EVENT_UN_HANDLED,pLabel->onEscKeyPress());
	OBJ_DESTORY(pLabel);
}

} /* namespace NS_LCD_AFW */
